package com.nodecollege.cloud.service;

import com.nodecollege.cloud.common.model.NCResult;
import com.nodecollege.cloud.common.model.QueryVO;
import com.nodecollege.cloud.common.model.po.UpmsUser;
import com.nodecollege.cloud.common.model.po.UpmsUserInvitation;

/**
 * @author LC
 * @date 2019/12/12 18:13
 */
public interface UserInvitationService {

    /**
     * 获取邀请列表
     * @param queryVO
     * @return
     */
    NCResult<UpmsUserInvitation> getInvitedList(QueryVO<UpmsUserInvitation> queryVO);

    /**
     * 邀请成员
     * @param invitation
     */
    void inviteMember(UpmsUserInvitation invitation);

    /**
     * 检测是否有邀请
     * 有邀请创建成员数据，添加默认组织角色，更新用户信息等
     * @param user
     */
    void checkInviteAndAddMember(UpmsUser user);
}
